﻿async function getCoords() {
    const pos = await new Promise((resolve, reject) => {
        navigator.geolocation.getCurrentPosition(resolve, reject);
    });
    return pos.coords.longitude.toString()+","+pos.coords.latitude.toString();
}